R4 Draft for Comment

This page is part of the FHIR Specification (v3.2.0: R4 Ballot 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Questionnaire-cqif-example.ttl

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle, JSON-LD

Questionnaire used to define the questions involved in the PHQ-9 health questionnaire

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/Questionnaire/questionnaire-cqif-example> a fhir:Questionnaire;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "questionnaire-cqif-example"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/StructureDefinition/cqif-questionnaire";
       fhir:index 0
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">PHQ-9 Questionnaire with dynamic logic</div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqif-library" ];
     fhir:Extension.valueReference [
       fhir:link <http://hl7.org/fhir/Library/phq-9-logic>;
       fhir:Reference.reference [ fhir:value "Library/phq-9-logic" ]
     ]
  ];
  fhir:Questionnaire.identifier [
     fhir:index 0;
     fhir:Identifier.use [ fhir:value "official" ];
     fhir:Identifier.value [ fhir:value "phq-9" ]
  ];
  fhir:Questionnaire.version [ fhir:value "1.0.0"];
  fhir:Questionnaire.title [ fhir:value "Patient Health Questionnaire (PHQ-9)"];
  fhir:Questionnaire.status [ fhir:value "draft"];
  fhir:Questionnaire.subjectType [
     fhir:value "Patient";
     fhir:index 0
  ];
  fhir:Questionnaire.code [
     fhir:index 0;
     a loinc:44249-1;
     fhir:Coding.system [ fhir:value "http://loinc.org" ];
     fhir:Coding.code [ fhir:value "44249-1" ];
     fhir:Coding.display [ fhir:value "PHQ-9 quick depression assessment panel:-:Pt:^Patient:-:Report.PHQ-9" ]
  ];
  fhir:Questionnaire.item [
     fhir:index 0;
     fhir:Questionnaire.item.linkId [ fhir:value "LittleInterest" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44250-9;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44250-9" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Little interest or pleasure in doing things" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 1;
     fhir:Questionnaire.item.linkId [ fhir:value "FeelingDown" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44255-8;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44255-8" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Feeling down, depressed, or hopeless" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 2;
     fhir:Questionnaire.item.linkId [ fhir:value "TroubleSleeping" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44259-0;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44259-0" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Trouble falling or staying asleep" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 3;
     fhir:Questionnaire.item.linkId [ fhir:value "FeelingTired" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44254-1;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44254-1" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Feeling tired or having little energy" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 4;
     fhir:Questionnaire.item.linkId [ fhir:value "BadAppetite" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44251-7;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44251-7" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Poor appetite or overeating" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 5;
     fhir:Questionnaire.item.linkId [ fhir:value "FeelingBadAboutSelf" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44258-2;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44258-2" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Feeling bad about yourself - or that you are a failure or have let yourself or your family down" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 6;
     fhir:Questionnaire.item.linkId [ fhir:value "TroubleConcentrating" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44252-5;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44252-5" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Trouble concentrating on things, such as reading the newspaper or watching television" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 7;
     fhir:Questionnaire.item.linkId [ fhir:value "MovingSpeaking" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44253-3;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44253-3" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Moving or speaking so slowly that other people could have noticed. Or the opposite - being so fidgety or restless that you have been moving around a lot more than usual" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Patient Health Questionnaire (PHQ-9) Not at all/Several days/More than half the days/Nearly every day" ]
     ]
  ], [
     fhir:index 8;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqif-calculatedValue" ];
       fhir:Extension.valueString [ fhir:value "CalculateTotalScore" ]
     ];
     fhir:Questionnaire.item.linkId [ fhir:value "TotalScore" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44261-6;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44261-6" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "Total score" ];
     fhir:Questionnaire.item.type [ fhir:value "integer" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ]
  ], [
     fhir:index 9;
     fhir:Questionnaire.item.linkId [ fhir:value "Difficulty" ];
     fhir:Questionnaire.item.code [
       fhir:index 0;
       a loinc:44256-6;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "44256-6" ]
     ];
     fhir:Questionnaire.item.text [ fhir:value "If you checked off any problems, how difficult have these problems made it for you to do your work, take care of things at home, or get along with other people" ];
     fhir:Questionnaire.item.type [ fhir:value "choice" ];
     fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
     fhir:Questionnaire.item.options [
       fhir:link <http://loinc.org/vs/LL358-3>;
       fhir:Reference.reference [ fhir:value "http://loinc.org/vs/LL358-3" ];
       fhir:Reference.display [ fhir:value "Not difficult at all/Somewhat difficult/Very difficult/Extremely difficult-Perceived difficulty (PHQ-9)" ]
     ]
  ] .

<http://hl7.org/fhir/Library/phq-9-logic> a fhir:Library .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Questionnaire/questionnaire-cqif-example.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Questionnaire/questionnaire-cqif-example.ttl> .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.